package com.stark.commons.spring.core.boot.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * 分布式锁配置项。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.0
 */
@ConfigurationProperties(prefix = "spring.lock.distributed")
@Data
public class DistributedLockProperties {
	
	/** redis 分布式锁配置 */
	private RedisDistributedLockProperties redis = new RedisDistributedLockProperties();
	
	@Data
	public static class RedisDistributedLockProperties {
		
		/** 命名空间 */
		private String cacheName;
		
		/** 占锁超时毫秒数 */
		private long timeout;
		
	}

}
